package models

type UserGroup struct {
	ID int `gorm:"auto_increment;primary_key;cloumn:id;type:int(11) unsigned;not null"`
	UserID int `gorm:"cloumn:user_id;type:int(11) unsigned; not null" form:"user_id" json:"user_id"`
	GName string `gorm:"cloumn:g_name;type:varchar(30);not null" form:"g_name" json:"g_name"`
	CreatedAt int64	`gorm:"column:created_at;type:int(11) unsigned" json:"created_at"`
	UpdatedAt int64	`gorm:"column:updated_at;type:int(11) unsigned" json:"updated_at"`

	User User `gorm:"ForeignKey:Id;AssociationForeignKey:UserID"`
}

func (ug *UserGroup) TableName() string {
	return "user_group"
}

